<div class="findtrs">
	<div class="ftitle">
		<div class="lt">
			<h2>快速充值</h2>
		</div>
	</div>
	<div class="fkshurechar fbai">
		<div class="fretlt">
			<h2>&nbsp;</h2>
		</div>
		<div class="frecharlst">
			<ul>
                {if $fund_server == 1}
                    <li>
                        <a href="#">
                            <div class="icon">
                                <img src="__STATIC__/lib/index/images/fd10.png" alt=""
                                     onmouseover="layer.tips('<img src=\'{$fund_server_img}\' width=295 height=395>',this,
                                                  {tips: [2, '#fff'],time:60000,area: ['295', '395']});"
                                     onmouseout="layer.closeAll();">
                            </div>
                            <div class="text">
                                <div class="txt">
                                    <h3>客服充值</h3>
                                    <p></p>
                                </div>
                            </div>
                        </a>
                    </li>
                {/if}
                {if $fund_alipay == 1}
                    <li>
                        <a href="javascript:;" id="sm_pay">
                            <div class="icon"><img src="__STATIC__/lib/index/images/zfb.jpg" alt=""></div>
                            <div class="text">
                                <div class="txt">
                                    <h3>扫码支付</h3>
                                    <p style="color: red">需完成实名认证</p>
                                </div>
                            </div>
                        </a>
                    </li>
                {/if}
                {if $fund_oy == 1}
                <li>
                    <a href="javascript:;" id="poc_oy">
                        <div class="icon"><img src="__STATIC__/lib/index/images/oy.jpg" alt=""></div>
                        <div class="text">
                            <div class="txt">
                                <h3>USDT充值</h3>
                                <p style="color: red">需完成实名认证</p>
                            </div>
                        </div>
                    </a>
                </li>
                {/if}
            </ul>
            </div>
            <div class="fdetail" style="padding-top: 50px;font-size: 20px;font-weight: bold;color: red">
                <ul>
                    <li>
                        <i>* 客服充值请联系客服.<br/><br/></i>
                    </li>
                </ul>
            </div>
         </div>
</div>
<script type="text/javascript">
    layui.use('form', function(){
        var form = layui.form;

        $("#online").click(function(){
            checkUser("{:url('fund/onLine')}");
        });

        $("#sm_pay").click(function(){
            checkUser("{:url('fund/alipay')}");
        });
        $("#czm_pay").click(function(){
            checkUser("{:url('fund/card')}");
        });
        $("#poc_oy").click(function(){
            checkUser("{:url('fund/usdt')}");
        });
        function checkUser(url){
            const grade = "{$grade}";
            if(grade == 0){
                layer.msg('请进行实名认证！', { time: 1000});
                setTimeout("window.location.href='" + "{:url('user/account')}" + "'; ", 500);
            }else{
                setTimeout("window.location.href='" + url + "'; ", 500);
            }
        }
    });

</script>